import request from '@/utils/request'

/**
 * 获取项目列表
 */
export function getModelList(data) {
  return request({
    url: '/integralConfig/GetModelList',
    method: 'post',
    data
  })
}

export function addModel(data) {
  return request({
    url: '/integralConfig/AddModel',
    method: 'post',
    data
  })
}

export function updateModel(data) {
  return request({
    url: `/integralConfig/UpdateModel`,
    method: 'post',
    data
  })
}

export function deleteModel(id) {
  return request({
    url: `/integralConfig/DeleteModel?id=` + id,
    method: 'post'
  })
}

